<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans default-autowire="byName">
    <!-- 计算订单价格的RuleTemplate -->
    <bean id="pricingTemplate" class="org.springside.modules.rule.support.RuleTemplateImpl">
        <property name="ruleBaseLoader">
        	<bean class="org.springside.modules.rule.support.DSLRuleBaseLoader">
        		<property name="ruleFiles">
        			<value>/rules/pricing/orderPricing.dsl=file:${oa_application.config}/rules/pricing/**.drl</value>
        		</property>
         	</bean>
         </property>
    </bean>

    <!-- demo Excel决策树的loader -->  
    <!--
    <bean id="xlsRuleBaseLoader" class="org.springside.modules.rule.support.ExcelRuleBaseLoader">
        <property name="ruleFiles" value="classpath*:rules/xls/**.xls"/>
    </bean>-->
</beans>
